﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="ZWZ.Web.WebAdmin.Default" %>

<%@ Import Namespace="ZWZ.Web.Config" %>
<%@ Register Src="UCtrs/CtrQuickView.ascx" TagName="CtrQuickView" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
        <%=ConfigAdapter.SiteSettingMgr["BaseSetting","CompanyName"]%>
        -- 管理</title>
    <script src="/WebPage/JsControl/Jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="/webadmin/Js/UIBase.js" type="text/javascript"></script>
    <!-- 样式 -->
    <link href="css/admin.css" rel="stylesheet" type="text/css" />
    <!-- 内联样式 -->
    <style type="text/css">
        html, body
        {
            width: 100%;
            height: 100%;
        }
        .main-header
        {
            background-image: linear-gradient(rgb(125, 185, 232) 0px, rgb(38, 183, 228) 0px, rgb(32, 124, 202) 100%, rgb(21, 152, 230) 100%);
            text-shadow: 1px 1px 2px #555;
        }
        .main-footer
        {
            text-shadow: 1px 1px 2px #555;
        }
    </style>
    <script type="text/javascript">
        var isRefrash = false;
        $(function () {
            $(window).resize(function () {
                resize();
            });
            resize();
        });
        function resize() {
            var headerHeight = $("#main_header").height();
            var footerHeight = $("#main_footer").height();
            var middleHeight = window.innerHeight - headerHeight - footerHeight;
            if (middleHeight > 0) {
                $("#iframe_Menu").height(middleHeight);
                $("#iframe_Main").height(middleHeight);
            }
        }
        function main_span_click() {
            $("#main_menu_td").toggle();
        }
    </script>
</head>
<body style="overflow: hidden;">
    <form id="mainform" runat="server">
    <table cellpadding="0" cellspacing="0" class="main" style="width: 100%; height: 100%;">
        <tr>
            <td id="main_header" colspan="3" class="main-header" style="height: 60px;">
                <div class="userinfo">
                    <div>
                        <%=DateTime.Now.ToString("yyyy年MM月dd日 星期ddd") %>
                        &nbsp;|&nbsp; <a target="_blank" href="HelpInfo/">帮助中心</a> &nbsp;|&nbsp;
                        <asp:LinkButton ID="linkLogOut" OnClientClick="return confirm('确定要退出吗？');" runat="server"
                            OnClick="linkLogOut_Click">退出</asp:LinkButton>
                    </div>
                    <uc1:CtrQuickView ID="CtrQuickView1" runat="server" />
                </div>
                <div class="logo" title='<%=ConfigAdapter.SiteSettingMgr["BaseSetting","CompanyName"]%>'>
                    <img src="<%=ConfigAdapter.SiteSettingMgr["BaseSetting","LogoImage"]%>" />
                </div>
                <div class="clear">
                </div>
            </td>
        </tr>
        <tr>
            <td id="main_menu_td" class="main_menu_td">
                <iframe id="iframe_Menu" name="iframe_Menu" height="2000" width="100%" frameborder="0"
                    src="m.aspx"></iframe>
            </td>
            <td class="main_span">
                <div class="main_span_btn" onclick="main_span_click();">
                    &nbsp;</div>
            </td>
            <td id="main_container_td" style="vertical-align: top;">
                <iframe id="iframe_Main" name="iframe_Main" height="2000" width="100%" frameborder="0"
                    src="bd.aspx"></iframe>
            </td>
        </tr>
        <tr>
            <td id="main_footer" colspan="3" class="main-footer" style="height: 28px;">
                版权所有：<%=ConfigAdapter.SiteSettingMgr["WebSiteInfo","copyright"]%>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
